extends "../cex___Hide_dragon2/cex___Hide_dragon2.gd"

func _extInit():
	._extInit()
	chaName = "魔法龙·lv3"
	attCoe.atk = 40 / 8.5  / 4
	attCoe.maxHp = 1800 / 112.5 / 4
	addCdSkill("mfl2",8)
	addSkillTxt("魔法附身：提高自身增伤5%和免伤10%，持续5秒[cd:8秒]")

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "mfl2":
		cst("魔法附身","000000",position)
		addBuff(BFF.new(1))

class BFF:
	extends Buff
	func _init(lv):
		attInit()
		life = lv * 5
		att.atkR = 0.05
		att.defR = 0.1